#include <stdio.h>
int main()
{
    int n,n1,n2,n3;
    printf("Please input the first , second number and number of series:\n");
    scanf("%d%d%d",&n1,&n2,&n);
    if (n<=2)
      printf("Fibonacci series:%d %d",n1,n2);
    else
    {
        printf("Fibonacci series:%d %d",n1,n2);
        for(int i=3;i<=n;i++){
            n3=n1+n2;
            printf(" %d",n3);
            n1=n2;
            n2=n3;
        }
    }
}